package com.zx.mes.hyl.linked;

import org.junit.Test;

/**
 * 链表测试
 * @author huayunlong
 * @date 2018-8-3
 */
public class LinkedTest {

    @Test
    public void test(){
        DummyLinkedList<String> linkedList = new DummyLinkedList<>();
        linkedList.addFirst("11111");
        linkedList.addFirst("22222");
        System.out.println(linkedList);
        linkedList.addFirst("33333");
        System.out.println(linkedList);
        linkedList.add(1,"4444");
        System.out.println(linkedList);
        linkedList.remove(2);
        System.out.println(linkedList);
    }
}
